{extend name="Public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>用户管理</h2>
		</div>
		<div class="pull-right">
			<a href="{:U('create')}" class="btn btn-primary pull-right"> <i class="fa fa-plus-circle fa-lg"></i>
				新增用户
			</a>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
			<table class="table user-list table-hover">
				<thead>
					<tr>
						<th>
							<span>用户</span>
						</th>
						<th>
							<span>Email</span>
						</th>
						<th>
							<span>创建时间</span>
						</th>
						<th class="text-center">
							<span>状态</span>
						</th>
						<th>&nbsp;</th>
					</tr>
				</thead>
				<tbody>
					{volist name="_list" id="item"}
					<tr>
						<td>
							<img src="{:avatar($item['uid'])}" alt=""/>
							<a href="#" class="user-link">{$item['nickname']}</a>
							<span class="user-subhead">{$item['username']}</span>
						</td>
						<td>
							<span >{$item['email']}</span>
						</td>
						<td>{$item['reg_time']|date='Y-m-d',###}</td>
						<td class="text-center">
							<span class="label label-default">Inactive</span>
						</td>
						<td style="width: 20%;">
							<a href="{:U('User/edit',array('id'=>$item['uid']))}" class="table-link" title="编辑">
								<span class="fa-stack">
									<i class="fa fa-square fa-stack-2x"></i>
									<i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
								</span>
							</a>
							<a href="{:U('User/del',array('id'=>$item['uid']))}" class="table-link danger confirm ajax-get" title="删除">
								<span class="fa-stack">
									<i class="fa fa-square fa-stack-2x"></i>
									<i class="fa fa-trash-o fa-stack-1x fa-inverse"></i>
								</span>
							</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$_page}
		</div>
	</div>
</div>
{/block}